package lab3;

public class Edge implements Comparable<Edge> {
        protected String vertice1, vertice2;
        protected int length;
       
        public Edge(String vertice1, String vertice2, int length) {
                this.vertice1 = vertice1;
                this.vertice2 = vertice2;
                this.length = length;
        }

        @Override
        public int compareTo(Edge e) {
                return Integer.valueOf(this.length).compareTo(e.length);
        }
}

